﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
     body
     {
      font:12px Arial,Helvetica,"Nimbus Sans L",sans-serif;
     	}
    </style>
</head>
<body>
    <form id="form1" runat="server">
	<h2>Put the OrkutApiKey and Secret Key in web.config file and add reference to JSON DLL to the project</h2>
    <div>
        <fieldset>
         <legend> Authorization and authenticaion of Orkut </legend>
         <h3>Step 1.</h3>
		
                Create authorization link And navigate your user to orkut login page.You have to 
                define your callback page in oAuthOrkut.cs file . 
         <br />
         <h3>Step 2.</h3> 
          <asp:Button ID="btnAuthorization" Text="Get Authorization" runat="server" onclick="btnCreateAuthorization_Click" />
            <br />
            <div style="border:solid 1px #ccc; background-color:#eee;">
                oAuth Request Token : <asp:TextBox ID="txtRequestToken" runat="server"></asp:TextBox>
                <br />
                oAuth Request TokenSecret : <asp:TextBox ID="txtTokenSecret" runat="server"></asp:TextBox>
                <br />
                navigate to oauth page of Orkut: <asp:HyperLink ID="hypAuthToken" runat="server"></asp:HyperLink>
            </div>
            <br />
              <h3>Step 3.</h3>
            <div style="border:solid 1px #ccc; background-color:#eee;">
                Now, we retrieved oauth_token and oauth_verifier, it's time to go access token from 
                Orkut oAuth.<br />
                oauth_token   <asp:TextBox ID="txtoAuth_token" runat="server"></asp:TextBox><br />
                oauth_verifier <asp:TextBox ID="txtoAuth_verifier" runat="server"></asp:TextBox>
                <br />
                <asp:Button ID="btnGetAccessToken" runat="server" Text="Get Access Token" 
                    onclick="btnGetAccessToken_Click" />
                
            </div>
            
              <h3>Step 4.</h3>
            <div style="border:solid 1px #ccc; background-color:#eee;">
                Voila, We retrieved access token from Linked In.<br />
                Thats it.
                oauth_Access_token   <asp:TextBox ID="txtAccessToken" runat="server"></asp:TextBox><br />
                oauth_Access_tokenSecret   <asp:TextBox ID="txtAccessTokenSecret" runat="server"></asp:TextBox><br />
                <br />
                At this point you can make api calls with access_token and access_token_secret 
            </div>            
            
        </fieldset>
    </div>

    <p>
        <asp:Button ID="btnGetProfile" runat="server" onclick="getProfile_Click" Text="GetProfile" Width="185px" />
    </p>
    <p>
    <asp:Label ID="name" runat="server" Text="Label"></asp:Label>
    </p>
    <asp:Image ID="pic" runat="server" />
    <br />
    <br />
    <asp:TextBox ID="status" runat="server">Status Update</asp:TextBox>
    <p>
        &nbsp;</p>
    <p>
        <asp:Button ID="btnUpdateStatus" runat="server" onclick="updateStatus_Click" Text="Update Status" Width="141px" style="height: 26px" />
        
        
        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/smiley/i_bigsmile.gif"
             OnCommand="smile_Click" CommandArgument="bigSmile" />
        <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/smiley/i_smile.gif"
            OnCommand="smile_Click" CommandArgument="smile" />
        <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/smiley/i_cool.gif"
            OnCommand="smile_Click" CommandArgument="cool" />
        <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/smiley/i_angry.gif"
            OnCommand="smile_Click" CommandArgument="angry" />
        <asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/smiley/i_sad.gif"
            OnCommand="smile_Click" CommandArgument="sad" />
        <asp:ImageButton ID="ImageButton6" runat="server" ImageUrl="~/smiley/i_surprise.gif"
            OnCommand="smile_Click" CommandArgument="surprise" />
        <asp:ImageButton ID="ImageButton7" runat="server" ImageUrl="~/smiley/i_wink.gif"
            OnCommand="smile_Click" CommandArgument="wink" />
        <asp:ImageButton ID="ImageButton8" runat="server" ImageUrl="~/smiley/i_confuse.gif"
            OnCommand="smile_Click" CommandArgument="confuse" />
        <asp:ImageButton ID="ImageButton9" runat="server" ImageUrl="~/smiley/i_funny.gif"
            OnCommand="smile_Click" CommandArgument="funny" />
    </p>
    <p>
    <asp:Label ID="update" runat="server"></asp:Label>
    </p>
    <p>
        <asp:Label ID="Label2" runat="server" Text="No. Of Friends : "></asp:Label>
        <asp:TextBox ID="noOfFriends" runat="server">10</asp:TextBox>
    </p>
    <p>
        <asp:Button ID="btnFriends" runat="server" onclick="btnFriends_Click" 
            Text="Get Friends" />
    </p>
    <p>
        <asp:PlaceHolder ID="friends" runat="server"></asp:PlaceHolder>
    </p>
    <p>
        <asp:Label ID="Label1" runat="server" Text="No. of Scraps to be Fetched : "></asp:Label>
        <asp:TextBox ID="noOfScraps" runat="server" Text="5"></asp:TextBox>
    </p>
    <p>
        <asp:Button ID="btnFetchScraps" runat="server" onclick="btnFetchScraps_Click" Text="Fetch Scraps" />
        <br />
        <asp:PlaceHolder ID="placeHolder" runat="server" ></asp:PlaceHolder>
    </p>
    <p>
        <asp:TextBox ID="reply" runat="server">Reply To Scrap</asp:TextBox>
    </p>
    <p>
        <br />
        <asp:TextBox ID="request" runat="server"></asp:TextBox>
        <asp:Button ID="btnResponse" runat="server" onclick="btnResponse_Click" Text="Request" />
        <br />
        <br />
        <b>Response :</b>
        <br />
        <br />
        <asp:Label ID="res" runat="server" Text="Label"></asp:Label>
    </p>
    </form>
</body>
</html>
